class UserMailer < ActionMailer::Base
  #default :from => "pukara2012@gmail.com"
  default :from => "pukara.cultural.2012@gmail.com"

  def approved_email(user)
    @user = user
    @url  = "http://localhost:3000/users/sign_in"
    mail(:to => user.email, :subject => "Pukara: Usuario activado")
  end

  def rejected_email(user)
    @user = user
    mail(:to => user.email, :subject => "Pukara: Solicitud de usuario rechazada")
  end

  def suspended_email(user)
    @user = user
    mail(:to => user.email, :subject => "Pukara: Usuario suspendido")
  end
end
